﻿@{
    Layout = null;
    List<string> urls = ViewBag.Urls;
    Response.ContentType = "text/xml";    
}
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.sitemaps.org/schemas/sitemap-image/1.1"
        xmlns:video="http://www.sitemaps.org/schemas/sitemap-video/1.1" >
  @foreach (string url in urls)
  {
  <url><loc>@url</loc></url>
  }
</urlset>